import { Suspense, ReactNode } from "react";

interface PropType {
  comp: ReactNode;
}

const LazyLoad = (props: PropType) => {
  return <Suspense fallback={<div>loading...</div>}>{props.comp}</Suspense>;
};

export default LazyLoad;
